﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Nizm0.QOT.Library.Generators.Options
{
    public partial class ucPeselGeneratorOptions : UserControl
    {
        public PeselGeneratorOptions Pes=new PeselGeneratorOptions();

        public ucPeselGeneratorOptions()
        {
            InitializeComponent();
        }

        private void radioButton5_CheckedChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.Sex = Convert.ToInt32(!radioButton5.Checked);
        }

        private void DOB_ValueChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.Sex = Convert.ToInt32(!radioButton2.Checked);
            Pes.SpecificDate = Convert.ToDateTime(DOB.Text);
        }

        private void Fromdate_SelectedIndexChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.StarDate = Fromdate.Text;
        }

        private void Todate_SelectedIndexChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.EndDate = Todate.Text;
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.Sex = Convert.ToInt32(!radioButton3.Checked);
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            Pes.Type = tabControl2.SelectedIndex;
            Pes.Sex = Convert.ToInt32(!radioButton2.Checked);
        }
    }
}
